package com.example.demo.base;

import com.example.demo.service.PaymentService;
import com.example.demo.service.impl.PinaPays;
import com.example.demo.service.impl.TonglPay;

public class PaymentFactory {
    public PaymentService getPayment(String payType){
        if ("01".equals(payType)) {
            return  new PinaPays();
        }else {
            return  new TonglPay();
        }
    }
}
